package com.housediyadmin.events.buildingEvents
{
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/11/30
	 */	
	public class GetBuildingEvent extends Event
	{
		public static const GET_BUILDING_IDS:String = "getBuildingIds";
		public static const GET_BUILDINGS_BY_IDS:String = "getBuildingsByIds";
		public static const UPDATE_BUILDING_MODEL:String = "updateBuildingModel";
		public static const UPDATE_BUILDING_IDS:String = "updateBuildingIds";
		
		public var buildingIds:ArrayCollection;
		public var builidngArray:ArrayCollection;
		public var areaIds:ArrayCollection;
		//public var buildingIdsArray:Array;
		
		public function GetBuildingEvent(type:String, areaIds:ArrayCollection = null, buildingIds:ArrayCollection = null, builidngArray:ArrayCollection=null)
		{
			super(type);
			this.areaIds = areaIds;
			this.buildingIds = buildingIds;
			this.builidngArray = builidngArray;
		}
		
		override public function clone():Event
		{
			return new GetBuildingEvent(type, areaIds, buildingIds, builidngArray);
		}
	}
}